
(function (angular) {
  var app=angular.module('starter.route',
    [
      'tab.route',
      'guidePage.route',
      'home.route',
      'category.route',
      'goodsList.route',
      'cart.route',
      'account.route'
    ]);
  app.config(function($stateProvider, $urlRouterProvider) {


    // if none of the above states are matched, use this as the fallback
    //判断是否是第一次打开guidePage页面
      var guidePageValue=localStorage.getItem('guidePage');
    if(guidePageValue=='true'){
      $urlRouterProvider.otherwise('/tab/home');
    }else{
      $urlRouterProvider.otherwise('/guidePage');
    } ;
    //$urlRouterProvider.otherwise('/tab/dash');

  });
})(angular);
